﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using DataAccessLayer;

namespace TVGridContracts
{
    [ServiceContract]
    public interface ITVGridService
    {
        [OperationContract]
        int RegisterNewUser(string UserName, string Password);

        [OperationContract]
        int GetUserID(string UserName, string Password);

        [OperationContract]
        List<TVStation> GetUserStations(int UserID);

        [OperationContract]
        void SaveUserStations(int UserID, int[] Stations);

        [OperationContract]
        List<TVStation> GetStations();

        [OperationContract]
        string GetStationURL(int StationID);

        [OperationContract]
        void AddStation(string Name, string URL);

        [OperationContract]
        void RemoveStation(Station station);
    }
}
